package com.litidea.dataobjects;

import com.litidea.commons.dict.StaticDics;

public class DepartmentDO extends MenuNodeDO {
	
	private Integer deptId;
	
	private String deptName;//部门名称
	
	private String deptFullName;//部门全名
	
	private String deptResponsible;//承担职责
	
	private String deptDesc;//描述
	
	private String deptManagers;//部门管理人员
	
	private Integer childDeptNum;//子部门数量，在输出时计算
	
	private Integer memberNum;//当前部门人数
	
	private String createDate;//记录创建的时间
	
	private String deptCreateDate;//部门创建时间
	
	private String chgDate;//内容被修改的时间
	
	private String deptType;//部门类型
	
	public String deptTypeName;//部门类型的名称
	
	private Integer deptMgr;// 部门经理ID
	
	private String deptMgrName;
	
	public DepartmentDO(){}
	
	public DepartmentDO(Integer deptId , String deptName , String deptFullName , 
			Integer parentDeptId , String allParentDeptId, 
			String deptResponsible , String deptDesc ,Integer levelId , 
			String createDate , String deptCreateDate, String chgDate , 
			int orderId ,String deptType, Integer deptMgr, String deptMgrName) {
		this.deptId = deptId;
		this.id = deptId;
		this.deptName = deptName;
		this.text = deptName;
		this.deptFullName = deptFullName;
		this.parentId = parentDeptId;
		this.allParentId = allParentDeptId;
		this.deptResponsible = deptResponsible;
		this.deptDesc = deptDesc;
		this.levelId = levelId;
		this.createDate = createDate;
		this.deptCreateDate = deptCreateDate;
		this.chgDate = chgDate;
		this.orderId = orderId;
		this.deptType = deptType;
		this.deptTypeName = StaticDics.DEPT_TYPE_CODE_MAP.get(deptType);
		this.deptMgr = deptMgr;
		this.deptMgrName = deptMgrName;
	}
	
	public DepartmentDO(Integer deptId , String deptName , String deptFullName , Integer parentDeptId , 
			String deptResponsible , String deptDesc , Integer memberNum , Integer childDeptNum , 
			Integer levelId , String createDate , String chgDate , String deptManagers) {
		this.deptId = deptId;
		this.deptName = deptName;
		this.deptFullName = deptFullName;
		this.parentId = parentDeptId;
		this.deptResponsible = deptResponsible;
		this.deptDesc = deptDesc;
		this.memberNum = memberNum;
		this.childDeptNum = childDeptNum;
		this.levelId = levelId;
		this.createDate = createDate;
		this.chgDate = chgDate;
		this.deptManagers = deptManagers;
	}

	public String getDeptType() {
		return deptType;
	}

	public void setDeptType(String deptType) {
		this.deptType = deptType;
		this.deptTypeName = StaticDics.DEPT_TYPE_CODE_MAP.get(deptType);
	}

	public String getDeptTypeName() {
		return deptTypeName;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getDeptFullName() {
		return deptFullName;
	}

	public void setDeptFullName(String deptFullName) {
		this.deptFullName = deptFullName;
	}

	public String getDeptResponsible() {
		return deptResponsible;
	}

	public void setDeptResponsible(String deptResponsible) {
		this.deptResponsible = deptResponsible;
	}

	public String getDeptDesc() {
		return deptDesc;
	}

	public void setDeptDesc(String deptDesc) {
		this.deptDesc = deptDesc;
	}

	public Integer getChildDeptNum() {
		return childDeptNum;
	}

	public void setChildDeptNum(Integer childDeptNum) {
		this.childDeptNum = childDeptNum;
	}

	public Integer getMemberNum() {
		return memberNum;
	}

	public void setMemberNum(Integer memberNum) {
		this.memberNum = memberNum;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getChgDate() {
		return chgDate;
	}

	public void setChgDate(String chgDate) {
		this.chgDate = chgDate;
	}

	public String getDeptManagers() {
		return deptManagers;
	}

	public void setDeptManagers(String deptManagers) {
		this.deptManagers = deptManagers;
	}

	public String getDeptCreateDate() {
		return deptCreateDate;
	}

	public void setDeptCreateDate(String deptCreateDate) {
		this.deptCreateDate = deptCreateDate;
	}

	public Integer getDeptMgr() {
		return deptMgr;
	}

	public void setDeptMgr(Integer deptMgr) {
		this.deptMgr = deptMgr;
	}

	public String getDeptMgrName() {
		return deptMgrName;
	}

	public void setDeptMgrName(String deptMgrName) {
		this.deptMgrName = deptMgrName;
	}

	public void setDeptTypeName(String deptTypeName) {
		this.deptTypeName = deptTypeName;
	}

}
